package com.yonyou.cyxdms.sysAuth.service.dto.notification;

import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;

import java.io.Serializable;

/**
 * <p>
 * 通知通告之经销商角色
 * </p>
 *
 * @author chengliang
 * @since 2019-09-17
 */

public class NotificationDealerRoleListDTO extends DMSBaseDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 通知通告之角色ID
	 */
	private Long notificationDealerRoleId;

	private Long codeId;

	/**
	 * CODE_CN_DESC
	 */
	private String codeCnDesc;

	public NotificationDealerRoleListDTO() {
		super();
	}

	public Long getCodeId() {
		return codeId;
	}

	public void setCodeId(Long codeId) {
		this.codeId = codeId;
	}

	public String getCodeCnDesc() {
		return codeCnDesc;
	}

	public void setCodeCnDesc(String codeCnDesc) {
		this.codeCnDesc = codeCnDesc;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Long getNotificationDealerRoleId() {
		return notificationDealerRoleId;
	}

	public void setNotificationDealerRoleId(Long notificationDealerRoleId) {
		this.notificationDealerRoleId = notificationDealerRoleId;
	}

	@Override
	public String toString() {
		return "NotificationDealerRoleDTO{" +
		", codeId=" + codeId +
		", codeCnDesc=" + codeCnDesc +
		"}";
	}
	/**
	 * 将DTO 转换为PO
	 * //对某个对象属性进行赋值
	 * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
	 * @param poClass dto 需要转换的dto
	 * @author chengliang
	 * @since 2019-09-17
	 */
	@Override
	public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
		return super.transDtoToPo(poClass);
	}

	/**
	 * 将DTO 转换为PO
	 * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
	 * @param po 需要转换的对象
	 * @author chengliang
	 * @since 2019-09-17
	 */
	public <T extends BasePO> void transDtoToPo(T po) {
		BeanMapperUtil.copyProperties(this, po, "notificationDealerRoleId");
	}

}
